#-*- coding: utf-8 -*-
#! /usr/bin/python

from selenium import webdriver


chrome = webdriver.Chrome()
chrome.get('http://localhost/test/1.html')
t = chrome.find_elements_by_id('link-value')
print t

txt = chrome.find_element_by_xpath("//input[@id='link-value']")
vv = txt.get_attribute('value')
print vv
print str(txt)
#txt.click()

chrome.add_cookie({'name':'mycookie','value':'hihi'})
print chrome.get_cookie('mycookie')
#print txt.get_attribute('value')
